" Vim filetype plugin file

if exists("b:did_ftplugin")
  finish
endif

let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
let b:undo_ftplugin = 'setlocal define< formatoptions< comments< commentstring<'

setlocal define=\\v[(/]def(ault)@!\\S*
setlocal formatoptions-=t formatoptions+=croql
setlocal comments=n:;
setlocal commentstring=;\ %s

if exists('loaded_matchit')
  let b:match_words = &matchpairs
  let b:match_skip = 's:comment\|string\|regex\|character'
  let b:undo_ftplugin .= ' | unlet! b:match_words b:match_skip'
endif

let &cpo = s:cpo_save
unlet! s:cpo_save s:setting s:dir
